package mongoDemo;

import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.Mongo;

public class MongoTest {
    public static void main(String[] args) {
        Mongo mongo;
        try {
            mongo = new Mongo();
            DB db=  mongo.getDB("lcims80");
            DBCollection dbc= db.getCollection("B_BROADBAND_USER00");
            DBCursor dbCursor=dbc.find();
            while(dbCursor.hasNext()){
                System.out.println(dbCursor.next());
            }
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
